package com.linkhub.oms.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.linkhub.oms.common.enums.mp.DataStatusEnum;
import com.linkhub.oms.common.enums.mp.PlatFormEnum;
import com.linkhub.oms.common.enums.mp.SuccessfulEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.FieldNameConstants;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 商店表
 * </p>
 *
 * @author echo
 * @since 2024-03-20
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("t_shop")
@ApiModel(value="ShopEntity对象", description="商店表")
@FieldNameConstants
public class ShopEntity implements Serializable {


    @ApiModelProperty(value = "主键")
    @TableId(value = "Fid", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "商家id")
    @TableField("Fuser_id")
    private String userId;

    @ApiModelProperty(value = "系统商店id")
    @TableField("Fsys_shop_id")
    private String sysShopId;

    @ApiModelProperty(value = "平台商店id")
    @TableField("Fshop_id")
    private Long shopId;

    @ApiModelProperty(value = "商店名称")
    @TableField("Fshop_name")
    private String shopName;

    @ApiModelProperty(value = "商店地址")
    @TableField("Furl")
    private String url;

    @ApiModelProperty(value = "商店logo")
    @TableField("Flogo_url")
    private String logoUrl;

    @ApiModelProperty(value = "access_token")
    @TableField("Faccess_token")
    private String accessToken;

    @ApiModelProperty(value = "平台：1-shopify;2-shipo")
    @TableField("Fplat_form")
    private PlatFormEnum platForm;

    @ApiModelProperty(value = "授权：0-失败；1-成功")
    @TableField("Fauthorization")
    private SuccessfulEnum authorization;

    @ApiModelProperty(value = "授权时间")
    @TableField("Fauthorization_time")
    private LocalDateTime authorizationTime;

    @ApiModelProperty(value = "数据状态：1-有效；0-无效")
    @TableField("Fdata_status")
    private DataStatusEnum dataStatus;

    @ApiModelProperty(value = "创建时间")
    @TableField("Fcreated_time")
    private LocalDateTime createdTime;

    @ApiModelProperty(value = "修改时间")
    @TableField("Fupdate_time")
    private LocalDateTime updateTime;


}
